// 路由配置信息
// 引入路由组件
export default [
    //个人信息
    {
        path: "/userinfo/:userId",
        component: () =>
            import("@/pagaes/UserInfo"),
        meta: {
            show: true,
        },
    },
    //全部排序
    {
        path: "/rank",
        component: () =>
            import("@/pagaes/Rank"),
        meta: {
            show: true,
        },
    },
    //举报追踪
    {
        path: "/track",
        component: () =>
            import("@/pagaes/Track"),
        meta: {
            show: true,
        },
        //二级路由
        children: [
            {
                path: "tack",
                component: () =>
                    import ("@/pagaes/Track/Tack"),
            },
            {
                path: "detail/:id",
                component: () =>
                    import ("@/pagaes/Track/Detail"),
            }]
    },
    //举报
    {
        path: "/report",
        component: () =>
            import("@/pagaes/Report"),
        meta: {
            show: true,
        },
    },
    {
        path: "*",
        redirect: "/home", //一上来就展示首页
    },
    //空气详情页面
    {
        path: "/detail/:cityId",

        component: () =>
            import("@/pagaes/Detail"),
        meta: {
            show: true,
        },
    },
    {
        name: 'home',
        path: "/home",
        component: () =>
            import("@/pagaes/Home/Home.vue"),
    },
    {

        path: "/register",
        component: () =>
            import("@/pagaes/Register"),
    },
    {
        path: "/login",
        component: () =>
            import("@/pagaes/Login"),
    }


];
